package cn.edu.sgu.www.mhxysy.mapper.wenshi;

import cn.edu.sgu.www.mhxysy.entity.wenshi.WenshiAttribute;
import cn.edu.sgu.www.mhxysy.vo.wenshi.WenshiAttributeVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Repository
public interface WenshiAttributeMapper extends BaseMapper<WenshiAttribute> {

    /**
     * 通过纹饰ID查询查询纹饰属性
     * @param wenshiId 纹饰ID
     * @return List<String>
     */
    List<String> selectAttributes(@Param("wenshiId") String wenshiId);

    /**
     * 通过坐骑ID查询纹饰属性
     * @param zuoqiId 坐骑ID
     * @return List<WenshiAttributeVO>
     */
    List<WenshiAttributeVO> selectByZuoqiId(@Param("zuoqiId") String zuoqiId);

    /**
     * 通过纹饰ID查询纹饰属性列表
     * @param wenshiId 纹饰ID
     * @return List<WenshiAttribute>
     */
    List<WenshiAttribute> selectByWenshiId(@Param("wenshiId") String wenshiId);
}